<#if formField.hidden?? && formField.hidden=="1">
	<!-- 隐藏 -->
	<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
	<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
	<input type=hidden id=${field.name} name="fieldMap['${field.name}'].value" <#if businessInstanceField??>value="${businessInstanceField.value?default('')}" </#if>></input>
<#else>
	<#if formField.readonly?? && formField.readonly=="1">
		<#if linkOpter??>${linkOpter}</#if>
	<#else>
		<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
		<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
		<input type="hidden" id="${field.name}" name="fieldMap['${field.name}'].entityId"  <#if businessInstanceField?? && businessInstanceField.entityId??>value="${businessInstanceField.entityId}" </#if> > </input>
		
		<input type="text" readonly="readonly" id="${field.name}Id"
			name="${field.name}Names" class="textTest"  <#if disPlayName??>value="${disPlayName}" </#if>> 
	</#if>

	<script language="JavaScript">
	$(document).ready(function(){
		 $(document.getElementById('${field.name}Id')).inputStyle({
			operatorType:"text",
			operatorText:"选择",
			controllerWidth:'${formField.width?default('200')}',
			operatorFun:showMenu${field.id}
		});
	});
	
	function viewFactory(id,title) {
		var url =TDQS.CONTEXT_PATH+"business/process?tdqssid="+TDQS.SESSION_ID+"&function.id=powerproject_fun_000000000000015";
		url+="&businessProcess.id=powerproject_0000000000000000000";
		url+="&businessInstance.id="+id;
		url+="&isHideButton=1";
	    new Win({
			url:url,
			title:title,
			width:980,
			height:500,
			center:true,
			resizable:false
		});
	}
	
	function showMenu${field.id}(){
		var id = $('#${field.name}').val();
		new Win({
			url:TDQS.CONTEXT_PATH+"connectPlan/jumpPlanProject?tdqssid="+TDQS.SESSION_ID+"&planItemId="+id+'&saveFunction=save${field.id}&cleanFunction=clean${field.id}',
			title:"规划项目",
			width:550,
			height:320,
			center:true,
			resizable:false
		});
	}
	
	function save${field.id}(rec){		
		$('#${field.name}Id').val(rec.itemName);
		$('#${field.name}').val(rec.id);
		$("#interveneSysInvestLabel").text(rec.piTotalInvestment);
		$("#interveneSysInvest").val(rec.piTotalInvestment);
		window.curWin.saveWin();
	}
	
	function clean${field.id}(){		
		$('#${field.name}Id').val("");
		$('#${field.name}').val("");
		$("#interveneSysInvestLabel").text("");
		$("#interveneSysInvest").val("");
		window.curWin.saveWin();
	}
	</script>
</#if>